#ifndef READTHREAD_H
#define READTHREAD_H

#include <QFile>
#include <QMutex>
#include <QThread>
#include <QTreeWidget>
#include <QMutexLocker>

class ReadThread : public QThread
{
    Q_OBJECT

public:
//    ReadThread(QTreeWidget *tw);//y//
    ReadThread();//y
    ~ReadThread();//y

    void SetTreeWidget(QTreeWidget *tree);//y
    QTreeWidget *GetTreeWidget();//y
signals:
    void StartRead();
    void StartCompute();

protected:
    void run();



private:
    QTreeWidget *pTreeWidget;
    QMutex mutex;
    QFile file;
};

#endif // READTHREAD_H
